package cn.ht.jywrwater.module.ht.convert.village;

import java.util.*;

import cn.ht.jywrwater.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import cn.ht.jywrwater.module.ht.controller.admin.village.vo.*;
import cn.ht.jywrwater.module.ht.dal.dataobject.village.VillageDO;

/**
 * 村庄 Convert
 *
 * @author hzx
 */
@Mapper
public interface VillageConvert {

    VillageConvert INSTANCE = Mappers.getMapper(VillageConvert.class);

    VillageDO convert(VillageCreateReqVO bean);

    VillageDO convert(VillageUpdateReqVO bean);

    VillageRespVO convert(VillageDO bean);

    List<VillageRespVO> convertList(List<VillageDO> list);

    PageResult<VillageRespVO> convertPage(PageResult<VillageDO> page);

    List<VillageExcelVO> convertList02(List<VillageDO> list);

}
